﻿/******************************************************************
** 文 件 名: Bu_AuditTable_Opinion_DAL.cs
** Copyright (c) 2010-2012 Honestysoft (GuangZhou) Co.,LTD
** 创 建 人: 此代码由生成器自动生成
** 创建日期: 2012-4-3 16:38:05
** 描    述: 实现公共部分的数据访问封装，提供内部审核作业表-审核情况及意见的数据访问类
** 版    本: 2.0.0.0
** 修改描述:
** 修 改 人:
** 修改日期:
******************************************************************/
using System;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;
using System.Text;
using Honestysoft.BaseObject;
using Honestysoft.Financing.Model;

namespace Honestysoft.Financing.DataAccess
{
	/// <summary>
    /// Bu_AuditTable_Opinion数据访问类
    /// </summary>
	public partial class Bu_AuditTable_Opinion_DAL : BaseDataAccess<Bu_AuditTable_Opinion>
    {		
		/// <summary>
        /// 构造函数，使用指定的连接字符串
        /// </summary>
        /// <param name="connectionStringName">连接字符串名称</param>
        public Bu_AuditTable_Opinion_DAL(string connectionStringName)
            : base(connectionStringName)
        {

        }

        public int UpdateOpinion(string id,
            bool isPD1, bool isPD2, bool isPD3, bool isPD4, bool isPD5, bool isPD6, bool isPD7, bool isPD8, bool isPD9, bool isPD10,
            string pd1, string pd1Opinion, string pd2, string pd2Opinion,
            bool isCD1, bool isCD2, bool isCD3, bool isCD4, bool isCD5, bool isCD6, bool isCD7, bool isCD8, bool isCD9,
            string cd, string cdOpinion,
            bool isZD1, bool isZD2, bool isZD3, bool isZD4,
            string zd, string zdOpinion,
            string forPPriceOpinion, string forPlanOpinion,
            string forLoanOpinion, string forCPriceOpinion,
            string forProgress, string forProgressOpinion, DbTransaction transaction)
        {
            Bu_AuditTable_Opinion op = SelectEntityByKey(id, transaction);
            op.CD = cd;
            op.CDOpinion = cdOpinion;
            op.ForCPriceOpinion = forCPriceOpinion;
            op.ForLoanOpinion = forLoanOpinion;
            op.ForPlanOpinion = forPlanOpinion;
            op.ForPPriceOpinion = forPPriceOpinion;
            op.ForProgress = forProgress;
            op.ForProgressOpinion = forProgressOpinion;
            op.IsCD1 = isCD1;
            op.IsCD2 = isCD2;
            op.IsCD3 = isCD3;
            op.IsCD4 = isCD4;
            op.IsCD5 = isCD5;
            op.IsCD6 = isCD6;
            op.IsCD7 = isCD7;
            op.IsCD8 = isCD8;
            op.IsCD9 = isCD9;
            op.IsPD1 = isPD1;
            op.IsPD10 = isPD10;
            op.IsPD2 = isPD2;
            op.IsPD3 = isPD3;
            op.IsPD4 = isPD4;
            op.IsPD5 = isPD5;
            op.IsPD6 = isPD6;
            op.IsPD7 = isPD7;
            op.IsPD8 = isPD8;
            op.IsPD9 = isPD9;
            op.IsZD1 = isZD1;
            op.IsZD2 = isZD2;
            op.IsZD3 = isZD3;
            op.IsZD4 = isZD4;
            op.PD1 = pd1;
            op.PD1Opinion = pd1Opinion;
            op.PD2 = pd2;
            op.PD2Opinion = pd2Opinion;
            op.ZD = zd;
            op.ZDOpinion = zdOpinion;
            return UpdateEntity(op, transaction);
        }
    }
}
